package cn.gson.springboot.model.pjos;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * QA库表
 */
@Entity
@Table(name = "warehouse", schema = "springboot", catalog = "")
public class Warehouse {
    private int bankId;             //QA库id
    private String bankTrouble;     //问题
    private String bankAnswer;      //解答
    private String bankTips;        //内部提示
    private Timestamp bankDate;     //创建日期
    private String bankClass;       //分类
    private String bankState;       //状态
    private Integer bankTime;       //次数
    private Integer bankDelete;     //逻辑删除
    private Emp empByEmployeesId;   //作者

    public Warehouse() {

    }

    @Id
    @Column(name = "bank_id")
    public int getBankId() {
        return bankId;
    }

    public void setBankId(int bankId) {
        this.bankId = bankId;
    }

    @Basic
    @Column(name = "bank_trouble")
    public String getBankTrouble() {
        return bankTrouble;
    }

    public void setBankTrouble(String bankTrouble) {
        this.bankTrouble = bankTrouble;
    }

    @Basic
    @Column(name = "bank_answer")
    public String getBankAnswer() {
        return bankAnswer;
    }

    public void setBankAnswer(String bankAnswer) {
        this.bankAnswer = bankAnswer;
    }

    @Basic
    @Column(name = "bank_tips")
    public String getBankTips() {
        return bankTips;
    }

    public void setBankTips(String bankTips) {
        this.bankTips = bankTips;
    }

    @Basic
    @Column(name = "bank_date")
    public Timestamp getBankDate() {
        return bankDate;
    }

    public void setBankDate(Timestamp bankDate) {
        this.bankDate = bankDate;
    }

    @Basic
    @Column(name = "bank_class")
    public String getBankClass() {
        return bankClass;
    }

    public void setBankClass(String bankClass) {
        this.bankClass = bankClass;
    }

    @Basic
    @Column(name = "bank_state")
    public String getBankState() {
        return bankState;
    }

    public void setBankState(String bankState) {
        this.bankState = bankState;
    }

    @Basic
    @Column(name = "bank_time")
    public Integer getBankTime() {
        return bankTime;
    }

    public void setBankTime(Integer bankTime) {
        this.bankTime = bankTime;
    }

    @Basic
    @Column(name = "bank_delete")
    public Integer getBankDelete() {
        return bankDelete;
    }

    public void setBankDelete(Integer bankDelete) {
        this.bankDelete = bankDelete;
    }

    @ManyToOne
    @JoinColumn(name = "bank_author", referencedColumnName = "employees_id")
    public Emp getEmpByEmployeesId() {
        return empByEmployeesId;
    }

    public void setEmpByEmployeesId(Emp empByEmployeesId) {
        this.empByEmployeesId = empByEmployeesId;
    }
}
